import request from '@/utils/request'

// 获取VR树形全部数据
export function getVRtree(params) {
    return request({
        url: '/VRSystem/getVRtree',
        method: 'get',
        params
    })
}
// 获取场景图列表
export function getSceneList(params) {
    return request({
        url: '/VRSystem/getSceneList',
        method: 'get',
        params
    })
}
// 添加场景
export function addScene(data) {
  return request({
      url: '/VRSystem/addScene',
      method: 'post',
      data
  })
}
// 编辑场景
export function editScene(data) {
  return request({
      url: '/VRSystem/editScene',
      method: 'post',
      data
  })
}
//批量删除场景
export function deleteSceneByIds(data) {
  return request({
      url: '/VRSystem/deleteSceneByIds',
      method: 'delete',
      data
  })
}
//批量修改场景状态
export function changeSceneStatusByIds(data) {
  return request({
      url: '/VRSystem/changeSceneStatusByIds',
      method: 'post',
      data
  })
}
//通过场景图id获取场景详情
export function getSceneInfoById(params) {
  return request({
      url: '/VRSystem/getSceneInfoById',
      method: 'get',
      params
  })
}
//场景图添加锚点
export function addMarker(data) {
  return request({
      url: '/VRSystem/addMarker',
      method: 'post',
      data
  })
}
//获取默认锚点配置
export function getDefaultMarkerConfig(params) {
  return request({
      url: '/VRSystem/getDefaultMarkerConfig',
      method: 'get',
      params
  })
}
//修改默认锚点配置
export function editDefaultMarkerConfig(data) {
  return request({
      url: '/VRSystem/editDefaultMarkerConfig',
      method: 'post',
      data
  })
}
